/* Class34 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Graphics;

public abstract class Class34 {
	public static int anInt604;
	public static int anInt605;
	public static Class39_Sub5_Sub10_Sub4 aClass39_Sub5_Sub10_Sub4_606;
	public static int anInt607 = 0;
	public static JString aClass3_608;
	public static JString aClass3_609;
	public static Class57 aClass57_610;
	public static JString aClass3_611 = Class39_Sub5_Sub9.createJString(113, "Okay");
	public static JString aClass3_612;
	public static JString aClass3_613;
	public static JString aClass3_614;
	public static JString aClass3_615;

	public abstract void method332(int i, Component component);

	public static void method333(int i, int i_0_, int i_1_, int i_2_) {
		if (i_1_ == i_2_) {
			PacketStream.outputStream.writePacket(13);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 2) {
			PacketStream.outputStream.writePacket(217);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 3) {
			PacketStream.outputStream.writePacket(161);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 4) {
			PacketStream.outputStream.writePacket(3);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 5) {
			PacketStream.outputStream.writePacket(40);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 6) {
			PacketStream.outputStream.writePacket(73);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 7) {
			PacketStream.outputStream.writePacket(57);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 8) {
			PacketStream.outputStream.writePacket(167);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 9) {
			PacketStream.outputStream.writePacket(28);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		if (i_1_ == 10) {
			PacketStream.outputStream.writePacket(8);
			PacketStream.outputStream.writeInt(i);
			PacketStream.outputStream.writeShort(i_0_);
		}
		RSInterface class39_sub5_sub17 = Class62_Sub2.method1081(i, i_0_, 0);
		if (class39_sub5_sub17 != null && class39_sub5_sub17.anObjectArray2045 != null)
			GameCharacter.method514(i_1_, (class39_sub5_sub17.anObjectArray2045), null, -105, 0, class39_sub5_sub17, 0);
	}

	public static void method334(int i) {
		aClass39_Sub5_Sub10_Sub4_606 = null;
		aClass3_612 = null;
		aClass3_613 = null;
		aClass3_611 = null;
		aClass3_615 = null;
		aClass3_608 = null;
		aClass57_610 = null;
		aClass3_614 = null;
		if (i == 1)
			aClass3_609 = null;
	}

	public static void method335(int i, boolean bool) {
		if ((Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anInt2301 >> 7 == Class30.anInt544) && (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anInt2275 >> 7 == Class39_Sub9.anInt1407))
			Class30.anInt544 = 0;
		int i_3_ = CollisionMap.anInt515;
		if (bool)
			i_3_ = 1;
		for (int i_4_ = 0; i_3_ > i_4_; i_4_++) {
			Player class39_sub5_sub4_sub4_sub2;
			int i_5_;
			if (bool) {
				class39_sub5_sub4_sub4_sub2 = Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109;
				i_5_ = 33538048;
			} else {
				class39_sub5_sub4_sub4_sub2 = (Class14.aClass39_Sub5_Sub4_Sub4_Sub2Array211[Class1.anIntArray40[i_4_]]);
				i_5_ = Class1.anIntArray40[i_4_] << 14;
			}
			if (class39_sub5_sub4_sub4_sub2 != null && class39_sub5_sub4_sub4_sub2.method510((byte) -77)) {
				class39_sub5_sub4_sub4_sub2.aBoolean2505 = false;
				int i_6_ = class39_sub5_sub4_sub4_sub2.anInt2275 >> 7;
				if ((Class45.lowDetail && CollisionMap.anInt515 > 50 || CollisionMap.anInt515 > 200) && !bool && (class39_sub5_sub4_sub4_sub2.anInt2317 == class39_sub5_sub4_sub4_sub2.anInt2303))
					class39_sub5_sub4_sub4_sub2.aBoolean2505 = true;
				int i_7_ = class39_sub5_sub4_sub4_sub2.anInt2301 >> 7;
				if (i_7_ >= 0 && i_7_ < 104 && i_6_ >= 0 && i_6_ < 104) {
					if ((class39_sub5_sub4_sub4_sub2.aClass39_Sub5_Sub4_Sub6_2520) == null || (Class2.anInt48 < class39_sub5_sub4_sub4_sub2.anInt2512) || (class39_sub5_sub4_sub4_sub2.anInt2523 <= Class2.anInt48)) {
						if (((class39_sub5_sub4_sub4_sub2.anInt2301 & 0x7f) == 64) && ((class39_sub5_sub4_sub4_sub2.anInt2275 & 0x7f) == 64)) {
							if (Canvas_Sub1.anInt15 == Class24.anIntArrayArray455[i_7_][i_6_])
								continue;
							Class24.anIntArrayArray455[i_7_][i_6_] = Canvas_Sub1.anInt15;
						}
						class39_sub5_sub4_sub4_sub2.anInt2524 = Class14.method212((class39_sub5_sub4_sub4_sub2.anInt2275), 9990, Class11.currentPlane, (class39_sub5_sub4_sub4_sub2.anInt2301));
						Class44.aClass38_836.method375(Class11.currentPlane, class39_sub5_sub4_sub4_sub2.anInt2301, class39_sub5_sub4_sub4_sub2.anInt2275, class39_sub5_sub4_sub4_sub2.anInt2524, 60, class39_sub5_sub4_sub4_sub2, class39_sub5_sub4_sub4_sub2.anInt2251, i_5_, class39_sub5_sub4_sub4_sub2.aBoolean2298);
					} else {
						class39_sub5_sub4_sub4_sub2.aBoolean2505 = false;
						class39_sub5_sub4_sub4_sub2.anInt2524 = Class14.method212((class39_sub5_sub4_sub4_sub2.anInt2275), 9990, Class11.currentPlane, (class39_sub5_sub4_sub4_sub2.anInt2301));
						Class44.aClass38_836.method406(Class11.currentPlane, class39_sub5_sub4_sub4_sub2.anInt2301, class39_sub5_sub4_sub4_sub2.anInt2275, class39_sub5_sub4_sub4_sub2.anInt2524, 60, class39_sub5_sub4_sub4_sub2, class39_sub5_sub4_sub4_sub2.anInt2251, i_5_, class39_sub5_sub4_sub4_sub2.anInt2511, class39_sub5_sub4_sub4_sub2.anInt2510, class39_sub5_sub4_sub4_sub2.anInt2513, class39_sub5_sub4_sub4_sub2.anInt2522);
					}
				}
			}
		}
	}

	public static void clientTick(int i) {
		if (Class39_Sub7.anInt1380 > 1)
			Class39_Sub7.anInt1380--;
		if (Class39_Sub5_Sub2.anInt1692 > 0)
			Class39_Sub5_Sub2.anInt1692--;
		if (RSInterface.aBoolean2116) {
			RSInterface.aBoolean2116 = false;
			Class37.method354((byte) 102);
		} else {
			for (int i_8_ = 0; i_8_ < 100; i_8_++) {
				if (!PacketParser.parsePacket((byte) -117))
					break;
			}
			if (Class31.anInt563 == 30 || Class31.anInt563 == 35) {
				if (Class57.aBoolean1000 && Class31.anInt563 == 30) {
					Class46.mouseButtonType = 0;
					Class30.anInt541 = 0;
					while (Class39_Sub5_Sub7.method588(-4)) {
						/* empty */
					}
					for (int i_9_ = 0; Class13.aBooleanArray200.length > i_9_; i_9_++)
						Class13.aBooleanArray200[i_9_] = false;
				}
				Class18.method233(-14, 194, PacketStream.outputStream);
				synchronized (Class7.aClass31_123.anObject559) {
					if (!Class40.aBoolean764)
						Class7.aClass31_123.anInt561 = 0;
					else if (Class46.mouseButtonType != 0 || Class7.aClass31_123.anInt561 >= 40) {
						PacketStream.outputStream.writePacket(133);
						int i_10_ = 0;
						PacketStream.outputStream.writeByte((byte) -28, 0);
						int i_11_ = (PacketStream.outputStream.currentOffset);
						for (int i_12_ = 0; Class7.aClass31_123.anInt561 > i_12_; i_12_++) {
							if (-i_11_ + (PacketStream.outputStream.currentOffset) >= 240)
								break;
							i_10_++;
							int i_13_ = Class7.aClass31_123.anIntArray571[i_12_];
							if (i_13_ < 0)
								i_13_ = 0;
							else if (i_13_ > 764)
								i_13_ = 764;
							int i_14_ = Class7.aClass31_123.anIntArray562[i_12_];
							if (i_14_ < 0)
								i_14_ = 0;
							else if (i_14_ > 502)
								i_14_ = 502;
							int i_15_ = i_13_ + i_14_ * 765;
							if (Class7.aClass31_123.anIntArray562[i_12_] == -1 && (Class7.aClass31_123.anIntArray571[i_12_] == -1)) {
								i_14_ = -1;
								i_13_ = -1;
								i_15_ = 524287;
							}
							if (Class39_Sub5_Sub9.anInt1807 == i_13_ && i_14_ == PacketStream.anInt2159) {
								if (Class46.anInt882 < 2047)
									Class46.anInt882++;
							} else {
								int i_16_ = i_13_ - Class39_Sub5_Sub9.anInt1807;
								Class39_Sub5_Sub9.anInt1807 = i_13_;
								int i_17_ = -PacketStream.anInt2159 + i_14_;
								PacketStream.anInt2159 = i_14_;
								if (Class46.anInt882 < 8 && i_16_ >= -32 && i_16_ <= 31 && i_17_ >= -32 && i_17_ <= 31) {
									i_16_ += 32;
									i_17_ += 32;
									PacketStream.outputStream.writeShort(((Class46.anInt882 << 12) - (-(i_16_ << 6) - i_17_)));
									Class46.anInt882 = 0;
								} else if (Class46.anInt882 < 8) {
									PacketStream.outputStream.write3Bytes(8388608 + (Class46.anInt882 << 19) + i_15_);
									Class46.anInt882 = 0;
								} else {
									PacketStream.outputStream.writeInt(((Class46.anInt882 << 19) - 1073741824 + i_15_));
									Class46.anInt882 = 0;
								}
							}
						}
						PacketStream.outputStream.method816((PacketStream.outputStream.currentOffset) - i_11_, -12139);
						if (Class7.aClass31_123.anInt561 > i_10_) {
							Class7.aClass31_123.anInt561 -= i_10_;
							for (int i_18_ = 0; Class7.aClass31_123.anInt561 > i_18_; i_18_++) {
								Class7.aClass31_123.anIntArray571[i_18_] = (Class7.aClass31_123.anIntArray571[i_10_ + i_18_]);
								Class7.aClass31_123.anIntArray562[i_18_] = (Class7.aClass31_123.anIntArray562[i_10_ + i_18_]);
							}
						} else
							Class7.aClass31_123.anInt561 = 0;
					}
				}
				if (Class46.mouseButtonType != 0) {
					long l = ((-Class30.aLong536 + Class39_Sub5_Sub4_Sub5.aLong2331) / 50L);
					Class30.aLong536 = Class39_Sub5_Sub4_Sub5.aLong2331;
					if (l > 4095L)
						l = 4095L;
					int i_19_ = PacketParser.mouseY;
					int i_20_ = Class39_Sub4.mouseX;
					if (i_20_ >= 0) {
						if (i_20_ > 764)
							i_20_ = 764;
					} else
						i_20_ = 0;
					if (i_19_ < 0)
						i_19_ = 0;
					else if (i_19_ > 502)
						i_19_ = 502;
					int i_21_ = i_20_ + i_19_ * 765;
					int i_22_ = 0;
					if (Class46.mouseButtonType == 2)
						i_22_ = 1;
					int i_23_ = (int) l;
					PacketStream.outputStream.writePacket(162);
					PacketStream.outputStream.writeInt2(i_21_ + (i_22_ << 19) + (i_23_ << 20), -334352184);
				}
				if (Class13.aBooleanArray200[96] || Class13.aBooleanArray200[97] || Class13.aBooleanArray200[98] || Class13.aBooleanArray200[99])
					Deque.aBoolean914 = true;
				if (Class39_Sub4.anInt1336 > 0)
					Class39_Sub4.anInt1336--;
				if (Deque.aBoolean914 && Class39_Sub4.anInt1336 <= 0) {
					Class39_Sub4.anInt1336 = 20;
					Deque.aBoolean914 = false;
					PacketStream.outputStream.writePacket(66);
					PacketStream.outputStream.writeShortA(RSSocket.anInt301, (byte) -30);
					PacketStream.outputStream.writeShort(anInt605);
				}
				if (!Class43.aBoolean802 != true && !JString.aBoolean1232 == true) {
					JString.aBoolean1232 = true;
					PacketStream.outputStream.writePacket(207);
					Class39_Sub9.anInt1408++;
					PacketStream.outputStream.writeByte((byte) -28, 1);
				}
				if (!Class43.aBoolean802 == true && JString.aBoolean1232 == true) {
					JString.aBoolean1232 = false;
					PacketStream.outputStream.writePacket(207);
					Class39_Sub9.anInt1408++;
					PacketStream.outputStream.writeByte((byte) -28, 0);
				}
				Class23.method271((byte) -30);
				if (Class31.anInt563 == 30 || Class31.anInt563 == 35) {
					Class39_Sub5_Sub8.method591((byte) 92);
					Class39_Sub5_Sub2.method477((byte) -103);
					Class39_Sub5_Sub11.anInt1827++;
					if (Class39_Sub5_Sub11.anInt1827 > 750)
						Class37.method354((byte) 48);
					else {
						Class30.method318(0);
						JString.method91((byte) -126);
						Class62.method1049((byte) 108);
						Class45.anInt856++;
						if (Class4.anInt80 != 0) {
							Class26.anInt503 += 20;
							if (Class26.anInt503 >= 400)
								Class4.anInt80 = 0;
						}
						if (Login.anInt459 != 0) {
							Class39_Sub5_Sub4_Sub3.anInt2242++;
							if (Class39_Sub5_Sub4_Sub3.anInt2242 >= 15) {
								if (Login.anInt459 == 2)
									Class39_Sub14.aBoolean1520 = true;
								if (Login.anInt459 == 3)
									Class14.aBoolean245 = true;
								Login.anInt459 = 0;
							}
						}
						if (Class30.anInt534 != 0) {
							RSInterface.anInt2031++;
							if ((ISAAC.anInt1091 > Class39_Sub5_Sub2.anInt1702 + 5) || (ISAAC.anInt1091 < Class39_Sub5_Sub2.anInt1702 - 5) || (Class39_Sub5_Sub3.anInt1720 + 5 < Class33.anInt599) || (Class33.anInt599 < Class39_Sub5_Sub3.anInt1720 - 5))
								Class7.aBoolean121 = true;
							if (Class30.anInt541 == 0) {
								if (Class30.anInt534 == 3)
									Class14.aBoolean245 = true;
								if (Class30.anInt534 == 2)
									Class39_Sub14.aBoolean1520 = true;
								Class30.anInt534 = 0;
								if (Class7.aBoolean121 && RSInterface.anInt2031 >= 5) {
									Class41.anInt768 = -1;
									JString.method95(33);
									if (OnDemandFetcher.anInt1203 == Class41.anInt768 && (Class14.anInt231 != Class39_Sub9.anInt1403)) {
										RSInterface class39_sub5_sub17 = Class37.getInterface((byte) 121, (OnDemandFetcher.anInt1203));
										int i_24_ = 0;
										if (client.anInt1274 == 1 && (class39_sub5_sub17.anInt2078 == 206))
											i_24_ = 1;
										if ((class39_sub5_sub17.anIntArray2087[Class14.anInt231]) <= 0)
											i_24_ = 0;
										if (!class39_sub5_sub17.method773(0)) {
											if (i_24_ != 1)
												class39_sub5_sub17.method760(Class14.anInt231, Class39_Sub9.anInt1403, 7211);
											else {
												int i_25_ = Class39_Sub9.anInt1403;
												int i_26_ = Class14.anInt231;
												while (i_26_ != i_25_) {
													if (i_26_ < i_25_) {
														class39_sub5_sub17.method760(i_25_ - 1, i_25_, 7211);
														i_25_--;
													} else if (i_25_ < i_26_) {
														class39_sub5_sub17.method760(i_25_ + 1, i_25_, 7211);
														i_25_++;
													}
												}
											}
										} else {
											int i_27_ = Class39_Sub9.anInt1403;
											int i_28_ = Class14.anInt231;
											class39_sub5_sub17.anIntArray2087[i_28_] = (class39_sub5_sub17.anIntArray2087[i_27_]);
											class39_sub5_sub17.anIntArray2073[i_28_] = (class39_sub5_sub17.anIntArray2073[i_27_]);
											class39_sub5_sub17.anIntArray2087[i_27_] = -1;
											class39_sub5_sub17.anIntArray2073[i_27_] = 0;
										}
										PacketStream.outputStream.writePacket(190);
										PacketStream.outputStream.writeShort(Class39_Sub9.anInt1403);
										PacketStream.outputStream.writeInt(OnDemandFetcher.anInt1203);
										PacketStream.outputStream.writeByte((byte) -28, i_24_);
										PacketStream.outputStream.writeShort(Class14.anInt231);
									}
								} else if ((Class45.anInt868 != 1 && !(Class33.method327((Class39_Sub5_Sub11.anInt1841 - 1), (byte) -128))) || (Class39_Sub5_Sub11.anInt1841 <= 2)) {
									if (Class39_Sub5_Sub11.anInt1841 > 0)
										Class24.method278((Class39_Sub5_Sub11.anInt1841) - 1, 1);
								} else
									Class39_Sub5_Sub9.method607(701);
								Class46.mouseButtonType = 0;
								Class39_Sub5_Sub4_Sub3.anInt2242 = 10;
							}
						}
						int i_29_ = 34;
						if (Class39_Sub5.anInt1348 != -1) {
							Class62.method1050(503, Class39_Sub5.anInt1348, 0, 0, -72, i_29_, 765);
							if (Class39_Sub5_Sub2.anInt1713 != -1)
								Class62.method1050(503, Class39_Sub5_Sub2.anInt1713, 0, 0, 95, i_29_, 765);
						} else {
							if (Class39_Sub11.openInterface == -1) {
								if (Class26.anInt485 != -1)
									Class62.method1050(338, Class26.anInt485, 4, 4, -109, i_29_, 516);
							} else
								Class62.method1050(338, Class39_Sub11.openInterface, 4, 4, -108, i_29_, 516);
							if (Class39_Sub5_Sub4_Sub5.openSidebarInterface != -1)
								Class62.method1050(466, (Class39_Sub5_Sub4_Sub5.openSidebarInterface), 553, 205, 89, i_29_, 743);
							else if ((Tile.anIntArray1914[Node.anInt728]) != -1)
								Class62.method1050(466, (Tile.anIntArray1914[Node.anInt728]), 553, 205, -121, i_29_, 743);
							if (Tile.anInt1912 == -1) {
								if (ISAAC.anInt1095 != -1)
									Class62.method1050(453, ISAAC.anInt1095, 17, 357, 79, i_29_, 496);
							} else
								Class62.method1050(453, (Tile.anInt1912), 17, 357, -115, i_29_, 496);
						}
						if (Class39_Sub5.anInt1348 == -1) {
							if (Class39_Sub11.openInterface != -1)
								Class62.method1050(338, Class39_Sub11.openInterface, 4, 4, 68, i_29_ ^ 0xffffffff, 516);
							else if (Class26.anInt485 != -1)
								Class62.method1050(338, Class26.anInt485, 4, 4, 122, i_29_ ^ 0xffffffff, 516);
							if (Class39_Sub5_Sub4_Sub5.openSidebarInterface != -1)
								Class62.method1050(466, (Class39_Sub5_Sub4_Sub5.openSidebarInterface), 553, 205, 100, i_29_ ^ 0xffffffff, 743);
							else if ((Tile.anIntArray1914[Node.anInt728]) != -1)
								Class62.method1050(466, (Tile.anIntArray1914[Node.anInt728]), 553, 205, 105, i_29_ ^ 0xffffffff, 743);
							if (Tile.anInt1912 != -1)
								Class62.method1050(453, (Tile.anInt1912), 17, 357, -115, i_29_ ^ 0xffffffff, 496);
							else if (ISAAC.anInt1095 != -1)
								Class62.method1050(453, ISAAC.anInt1095, 17, 357, 125, i_29_ ^ 0xffffffff, 496);
						} else {
							Class62.method1050(503, Class39_Sub5.anInt1348, 0, 0, -81, i_29_ ^ 0xffffffff, 765);
							if (Class39_Sub5_Sub2.anInt1713 != -1)
								Class62.method1050(503, Class39_Sub5_Sub2.anInt1713, 0, 0, 72, i_29_ ^ 0xffffffff, 765);
						}
						Class62.method1046((byte) 22);
						if (World.anInt682 != -1) {
							int i_30_ = World.anInt677;
							int i_31_ = World.anInt682;
							boolean bool = (Class26.findRoute(24134, 0, i_30_, 0, 0, 0, 0, true, 0, (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anIntArray2314[0]), (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anIntArray2255[0]), i_31_));
							if (bool) {
								Class4.anInt80 = 1;
								Class26.anInt503 = 0;
								Class62_Sub2.anInt1596 = PacketParser.mouseY;
								Class62_Sub1.anInt1590 = Class39_Sub4.mouseX;
							}
							World.anInt682 = -1;
						}
						if (Class46.mouseButtonType == 1 && Class39_Sub5_Sub3.aClass3_1714 != null) {
							Class46.mouseButtonType = 0;
							Class39_Sub5_Sub3.aClass3_1714 = null;
							Class14.aBoolean245 = true;
						}
						Node.method411(113);
						if (Class39_Sub5.anInt1348 == -1) {
							Class39_Sub12.method872(50);
							Class47.method948(-124);
							Class39_Sub5_Sub5.toggleChatOptions((byte) -123);
						}
						if (Class30.anInt541 == 1 || Class46.mouseButtonType == 1)
							Class46_Sub1.anInt1547++;
						if (Class39_Sub5_Sub16.anInt1982 == -1 && Class39_Sub10.anInt1440 == -1 && Class39_Sub5_Sub6.anInt1760 == -1) {
							if (PacketStream.anInt2157 > 0)
								PacketStream.anInt2157--;
						} else if (Class30.anInt548 > PacketStream.anInt2157) {
							PacketStream.anInt2157++;
							if (PacketStream.anInt2157 == Class30.anInt548) {
								if (Class39_Sub10.anInt1440 != -1)
									Class39_Sub14.aBoolean1520 = true;
								if (Class39_Sub5_Sub16.anInt1982 != -1)
									Class14.aBoolean245 = true;
							}
						}
						JString.method62(126);
						if (CollisionMap.aBoolean504)
							Class39_Sub5_Sub4_Sub1.method496(2048);
						for (int i_32_ = 0; i_32_ < 5; i_32_++)
							Class4.anIntArray75[i_32_]++;
						Stream.method814(103);
						int i_33_ = Class32.method326(-2);
						int i_34_ = Class39_Sub5_Sub11.method699((byte) 49);
						if (i_33_ > 4500 && i_34_ > 4500) {
							Class39_Sub5_Sub2.anInt1692 = 250;
							Class39_Sub5_Sub4_Sub5.method535((byte) 106, 4000);
							PacketStream.outputStream.writePacket(192);
						}
						Class41.anInt780++;
						Class39_Sub4.anInt1335++;
						CacheArchive.anInt1290++;
						if (CacheArchive.anInt1290 > 500) {
							CacheArchive.anInt1290 = 0;
							int i_35_ = (int) (Math.random() * 8.0);
							if ((i_35_ & 0x1) == 1)
								RuntimeException_Sub1.anInt1216 += Class36.anInt643;
							if ((i_35_ & 0x4) == 4)
								Class39_Sub5.anInt1344 += OnDemandFetcher.anInt1211;
							if ((i_35_ & 0x2) == 2)
								Stream.anInt1361 += Class39_Sub5_Sub11.anInt1828;
						}
						if (Class39_Sub4.anInt1335 > 500) {
							Class39_Sub4.anInt1335 = 0;
							int i_36_ = (int) (Math.random() * 8.0);
							if ((i_36_ & 0x2) == 2)
								Class39_Sub7.anInt1386 += Class37.anInt662;
							if ((i_36_ & 0x1) == 1)
								Class39_Sub9.anInt1401 += Class46_Sub1.anInt1550;
						}
						if (Class39_Sub7.anInt1386 < -20)
							Class37.anInt662 = 1;
						if (Class39_Sub9.anInt1401 < -60)
							Class46_Sub1.anInt1550 = 2;
						if (RuntimeException_Sub1.anInt1216 < -50)
							Class36.anInt643 = 2;
						if (Stream.anInt1361 < -55)
							Class39_Sub5_Sub11.anInt1828 = 2;
						if (Stream.anInt1361 > 55)
							Class39_Sub5_Sub11.anInt1828 = -2;
						if (Class39_Sub9.anInt1401 > 60)
							Class46_Sub1.anInt1550 = -2;
						if (Class39_Sub5.anInt1344 < -40)
							OnDemandFetcher.anInt1211 = 1;
						if (Class39_Sub7.anInt1386 > 10)
							Class37.anInt662 = -1;
						if (Class39_Sub5.anInt1344 > 40)
							OnDemandFetcher.anInt1211 = -1;
						if (RuntimeException_Sub1.anInt1216 > 50)
							Class36.anInt643 = -2;
						if (Class41.anInt780 > 50) {
							anInt604++;
							PacketStream.outputStream.writePacket(86);
						}
						do {
							try {
								if (Class37.activeSocket == null || ((PacketStream.outputStream.currentOffset) <= 0))
									break;
								Class37.activeSocket.write(-1, (PacketStream.outputStream.buffer), (PacketStream.outputStream.currentOffset), 0);
								Class41.anInt780 = 0;
								PacketStream.outputStream.currentOffset = 0;
							} catch (java.io.IOException ioexception) {
								Class37.method354((byte) 89);
								break;
							}
							break;
						} while (false);
					}
				}
			}
		}
	}

	public abstract void method337(Component component, byte i);

	public abstract int method338(int i);

	public static void method339(Class9 class9, byte i, Class9 class9_37_) {
		Class39_Sub10.aClass9_1424 = class9;
		Stream.aClass9_1362 = class9_37_;
		Class57_Sub2.anInt1584 = Stream.aClass9_1362.method158(3, (byte) -4);
	}

	public static void method340(Color color, int i, JString class3, int i_38_) {
		try {
			Graphics graphics = Class41.aCanvas778.getGraphics();
			if (Class18.aFont351 == null) {
				Class18.aFont351 = new Font("Helvetica", 1, 13);
				Class26.aFontMetrics491 = Class41.aCanvas778.getFontMetrics(Class18.aFont351);
			}
			if (Class39_Sub5_Sub2.aBoolean1690) {
				Class39_Sub5_Sub2.aBoolean1690 = false;
				graphics.setColor(Color.black);
				graphics.fillRect(0, 0, ISAAC.anInt1087, Deque.anInt919);
			}
			if (color == null)
				color = new Color(140, 17, 17);
			try {
				if (Class39_Sub11.anImage1464 == null)
					Class39_Sub11.anImage1464 = Class41.aCanvas778.createImage(304, 34);
				Graphics graphics_39_ = Class39_Sub11.anImage1464.getGraphics();
				graphics_39_.setColor(color);
				graphics_39_.drawRect(0, 0, 303, 33);
				graphics_39_.fillRect(2, 2, i_38_ * 3, 30);
				graphics_39_.setColor(Color.black);
				graphics_39_.drawRect(1, 1, 301, 31);
				graphics_39_.fillRect(2 + i_38_ * 3, 2, -(i_38_ * 3) + 300, 30);
				graphics_39_.setFont(Class18.aFont351);
				graphics_39_.setColor(Color.white);
				class3.draw(22, (-class3.width(Class26.aFontMetrics491, -11) + 304) / 2, (byte) 13, graphics_39_);
				graphics.drawImage(Class39_Sub11.anImage1464, ISAAC.anInt1087 / 2 - 152, Deque.anInt919 / 2 - 18, null);
			} catch (Exception exception) {
				int i_40_ = ISAAC.anInt1087 / 2 - 152;
				int i_41_ = Deque.anInt919 / 2 - 18;
				graphics.setColor(color);
				graphics.drawRect(i_40_, i_41_, 303, 33);
				graphics.fillRect(i_40_ + 2, i_41_ + 2, i_38_ * 3, 30);
				graphics.setColor(Color.black);
				graphics.drawRect(i_40_ + 1, i_41_ + 1, 301, 31);
				graphics.fillRect(i_38_ * 3 + (i_40_ + 2), i_41_ + 2, -(i_38_ * 3) + 300, 30);
				graphics.setFont(Class18.aFont351);
				graphics.setColor(Color.white);
				class3.draw(i_41_ + 22, (i_40_ + (-class3.width(Class26.aFontMetrics491, -11) + 304) / 2), (byte) 13, graphics);
			}
		} catch (Exception exception) {
			Class41.aCanvas778.repaint();
		}
	}

	public static void method341(boolean bool) {
		Class4.aClass7_70.method134(27392);
		Class39_Sub5_Sub16.aClass7_1975.method134(27392);
	}

	public static int method342(int i, int i_42_) {
		return i & i_42_;
	}

	static {
		anInt605 = 0;
		aClass3_609 = Class39_Sub5_Sub9.createJString(112, "mapback");
		aClass3_614 = Class39_Sub5_Sub9.createJString(104, ":duelreq:");
		aClass3_613 = Class39_Sub5_Sub9.createJString(127, "slide:");
		aClass3_612 = Class39_Sub5_Sub9.createJString(118, "Report abuse");
		aClass3_615 = aClass3_613;
		aClass3_608 = aClass3_612;
	}
}
